package cn.yuan.org.domain;

import cn.yuan.basic.domain.Base;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data//包含了get,set,tostring等等。。。
@NoArgsConstructor//无参构造
@AllArgsConstructor//全参构造
public class Department extends Base {//alt  ctrl+alt  ctrl+alt+L

    private String sn;/*部门编号*/
    private String name;/*部门名字*/
    private String dirPath;/*部门路劲*/
    private Integer state;/*部门状态 1正常 0停用*/

    /*关联字段1*/
    private Long manager_id;/*部门经理*/
    /*关联对象2*/
    private Employee manager;
    /*关联字段1*/
    private Long parent_id;/*上级部门*/
    /*关联对象2*/
    private  Department parent;

    private List<Department> children = new ArrayList();

    public static void main(String[] args) {
        Department department = new Department();
    }
}
